package cn.tedu.tea.mapper;

import cn.tedu.tea.domain.TOrder;
import cn.tedu.tea.domain.vo.TOrderListVO;
import cn.tedu.tea.domain.vo.TOrderStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TOrderMapper {
    int insert(TOrder tOrder);
    int deleteById(Long id);
    int deleteByIds(Long[] ids);
    int update(TOrder tOrder);

    int countByOrderNo(String orderNo);
    int countByOrderNoAndNotId(String orderNo, Long id);

    TOrderStandardVO getStandardById(Long id);
    List<TOrderListVO> list();

}
